home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / dbmap.dxr / 00040_Caption Box Behavior.ls < prev    next >
Encoding:
Text File  |  2000-01-27  |  639 b   |  40 lines

  1. property pStatus
  2.  
  3. on beginSprite me
  4.   pStatus = 0
  5.   hide(me)
  6. end
  7.  
  8. on endSprite me
  9. end
  10.  
  11. on show me
  12.   castLocation = the castNum of sprite 6 + 1
  13.   set the member of sprite the spriteNum of me to member(castLocation, "DBMap")
  14.   set the locH of sprite the spriteNum of me to 155
  15.   set the locV of sprite the spriteNum of me to 292
  16. end
  17.  
  18. on hide me
  19.   set the locH of sprite the spriteNum of me to -999
  20.   set the locV of sprite the spriteNum of me to -999
  21. end
  22.  
  23. on toggle me
  24.   if pStatus = 0 then
  25.     pStatus = 1
  26.     show(me)
  27.   else
  28.     pStatus = 0
  29.     hide(me)
  30.   end if
  31. end
  32.  
  33. on mouseDown me
  34.   toggle(me)
  35. end
  36.  
  37. on getStatus me
  38.   return pStatus
  39. end
  40.